package com.ifnk.portaljava.hlyt.kpi.beans;

import java.sql.Date;
public class GnSuccess {
	private int id;
	private String time;
	private int createSuccessNo;
	private int createRequestNo;
	private Double createSuccessPcnt; 
	private int deleteSuccessNo;
	private int deleteRequestNo;
	private Double deleteSuccessPcnt;
	private Date import_time;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}

	public int getCreateSuccessNo() {
		return createSuccessNo;
	}
	public void setCreateSuccessNo(int createSuccessNo) {
		this.createSuccessNo = createSuccessNo;
	}
	public int getCreateRequestNo() {
		return createRequestNo;
	}
	public void setCreateRequestNo(int createRequestNo) {
		this.createRequestNo = createRequestNo;
	}
	public Double getCreateSuccessPcnt() {
		return createSuccessPcnt;
	}
	public void setCreateSuccessPcnt(Double createSuccessPcnt) {
		if(createSuccessPcnt == null){
			this.createSuccessPcnt = ((double)this.createSuccessNo)/((double)this.createRequestNo);
		}else{
			this.createSuccessPcnt = createSuccessPcnt;
		}
	}
	public int getDeleteSuccessNo() {
		return deleteSuccessNo;
	}
	public void setDeleteSuccessNo(int deleteSuccessNo) {
		this.deleteSuccessNo = deleteSuccessNo;
	}
	public int getDeleteRequestNo() {
		return deleteRequestNo;
	}
	public void setDeleteRequestNo(int deleteRequestNo) {
		this.deleteRequestNo = deleteRequestNo;
	}
	public Double getDeleteSuccessPcnt() {
		return deleteSuccessPcnt;
	}
	public void setDeleteSuccessPcnt(Double deleteSuccessPcnt) {
		this.deleteSuccessPcnt = deleteSuccessPcnt;
	}
	public Date getImport_time() {
		return import_time;
	}
	public void setImport_time(Date importTime) {
		import_time = importTime;
	}


}
